home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacFormat España 14
/
MacFormat n. 14 (Spain)
/
MacFormat 14.bin
/
Recursos Multimedia
/
Sounds
/
SoundEffects 0.9.1
/
SoundEffects Developer’s Kit
/
Interfaces
/
ModGetSetSamples.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1994-11-19
|
333 b
|
11 lines
// When samples are 8 bits in size:
#define GetSample8(x) ((signed char)(*(signed char *)x ^ 0x80))
#define SetSample8(x, s) *(signed char *)x = (SignedByte)s ^ 0x80
// When samples are 9 to 32 bits in size:
signed long GetSample16(Ptr samplePtr, short bps);
void SetSample16(Ptr samplePtr, signed long mySample, short bps);